package com.git.groovy.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class HandlerMyTest {

    Logger log = LoggerFactory.getLogger(HandlerMyTest.class);

    public String testITest(String tt, ITest iTest){
        log.info("testHello");
        if(iTest != null){
            String str = iTest.runTest();
            log.info("runTest:{}",str);
            return tt + str;
        }
        return tt + "NA";
    }

}
